import { LoginParams } from '@/types/request'
import { LoginResponse } from '@/types/response'
import request from '@/utils/request'

export function loginApi (data: LoginParams) {
  return request<LoginResponse>({
    method: 'post',
    url: '/login',
    data
  })
}

export function logoutApi () {
  return request({
    method: 'get',
    url: '/logout'
  })
}
